package com.taiyo.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.taiyo.modules.api.dao.TCommentDao;
import com.taiyo.modules.api.entity.TCommentEntity;
import com.taiyo.modules.api.service.TCommentService;



@Service("tCommentService")
public class TCommentServiceImpl implements TCommentService {
	@Autowired
	private TCommentDao tCommentDao;
	
	@Override
	public TCommentEntity queryObject(Long id){
		return tCommentDao.queryObject(id);
	}
	
	@Override
	public List<TCommentEntity> queryList(Map<String, Object> map){
		return tCommentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tCommentDao.queryTotal(map);
	}
	
	@Override
	public void save(TCommentEntity tComment){
		tCommentDao.save(tComment);
	}
	
	@Override
	public void update(TCommentEntity tComment){
		tCommentDao.update(tComment);
	}
	
	@Override
	public void delete(Long id){
		tCommentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tCommentDao.deleteBatch(ids);
	}

	@Override
	public List<TCommentEntity> queryObjectByParams(Map<String, Object> map) {
		return tCommentDao.queryObjectByParams(map);
	}

}
